minios: fix incorrect {, un}likely() definitions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Jul 2014 12:46:42 +0000 (14:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 2 Jul 2014 12:46:42 +0000 (14:46 +0200)
commit7915fc1587eb61c64499d025e52ab1c665be44d7
tree79ed725d2829efbab5a1da369ddf2345d0104b33
parent1f83dbf0b514372265156a42fb6521a89bcb0aaa
minios: fix incorrect {, un}likely() definitions

As identified in e5545fb6, likely() and unlikely() must convert their
expressions to booleans before comparing to 1 or 0, to avoid truncation
issues.

While editing this file, add inclusion guards.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
extras/mini-os/include/compiler.h